package org.ms.mtx.core;

import org.ms.mtx.core.annotation.Compensable;
import org.ms.mtx.core.annotation.Transactional;

/**
 * The Transaction Interface
 *
 * @author lry
 */
public interface ITransaction {

    void build(Compensable compensable);

    void clear();

    void cancel();

    Object invoke(Transactional transactional);

    void addCancel(Transactional transactional);

}
